libxenstore: Provide xs_check_watch
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 12 Dec 2011 17:48:38 +0000 (17:48 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 12 Dec 2011 17:48:38 +0000 (17:48 +0000)
commitbe4840198b9c459292f8f527aab007972fb5a460
tree1f655cdd0b6e314de78b23b5e2d85c7e9f453889
parent1eacd68b8a9daa3690cbdb4d71514fa36b7aad82
libxenstore: Provide xs_check_watch

Event-driven programs want to wait until the xs_fileno triggers for
reading, and then repeatedly call xs_check_watch.

Also xs_read_watch exposes a useless "num" out parameter, which should
always (if things aren't going hideously wrong) be at least 2 and
which the caller shouldn't be interested in.  So xs_check_watch
doesn't have one of those.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/xenstore/Makefile
tools/xenstore/xs.c
tools/xenstore/xs.h